<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>联系人首页</title>
</head>
<body>
    <div>
        <table border="1" width="60%">
            <thead>
                <tr><th>名字</th><th>生日</th><th>电话</th><th>操作</th></tr>
            </thead>
            <tbody>
                <tr th:each="link:${list.list}">
                    <td th:text="${link.name}"></td>
                    <td th:text="${link.birthday}"></td>
                    <td th:text="${link.phone}"></td>
                    <td><a th:href="@{/link/update(id=${link.id})}">修改</a>
                            <a th:href="@{/link/del(id=${link.id})}">删除</a></td>
                </tr>
            </tbody>
        </table>
        <div>
            <a th:each="pg:${#numbers.sequence(1,list.pages)}" th:text="${pg}+'页'"
            style="margin-left: 20px" th:href="@{/link/findAll(pageNO=${pg})}"></a>
        </div>
    </div>
       <a href="/html/add.html">添加用户</a>
</body>
</html>